package swingTests;

import java.util.Enumeration;
import java.util.Formatter;
import java.util.Hashtable;

import javax.swing.UIManager;

public class UIManager_List_of_Keys
{
  public static void main (String[] args)
  {
      //1........
    Hashtable   properties = UIManager.getDefaults();
    Enumeration keys       = properties.keys();

    while (keys.hasMoreElements()) {
      String key   = (String) keys.nextElement();
      Object value = properties.get (key);
     System.out.printf("%-40s \t %-200s \n", key,value);
    }
    //2......
//    System.out.printf("%-10s %-10s %-10s\n", "osne", "two", "thredsfe");
//    System.out.printf("%-10s %-10s %-10s\n", "one", "tdsfwo", "thsdfree");
//    System.out.printf("%-10s %-10s %-10s\n", "onsdfe", "twdfo", "three");
//    System.out.printf("%-10s %-10s %-10s\n", "odsfne", "twsdfo", "thdfree");
//    System.out.printf("%-10s %-10s %-10s\n", "osdne", "twdfo", "three");
//    System.out.printf("%-10s %-10s %-10s\n", "odsfne", "tdfwo", "three");
    
      
      //3.........
    for (Object key: UIManager.getDefaults().keySet())
    {
        System.out.println(key);
    }
  }
}